<?php

/**
 * SocialEnginePro
 *
 * @category   Application_Extensions
 * @package    tv
 * @author     Azim
 */

/**
 * @category   Application_Extensions
 * @package    tv
 */
class Tv_Widget_TvOptionsController extends Engine_Content_Widget_Abstract {

    public function indexAction() {
        if (!Engine_Api::_()->core()->hasSubject()) {
            return $this->setNoRender();
        }
       // $subject = Engine_Api::_()->core()->getSubject('tv');

        $this->view->navigation = $navigator = Engine_Api::_()
                ->getApi('menus', 'core')
                ->getNavigation('tv_options');

        if (count($navigator) <= 0) {
            return $this->setNoRender();
        }
    }

}